package com.gin.no_gay_alliance.callback;

import com.gin.nga.response.body.BaseMessageBody;
import com.gin.no_gay_alliance.utils.MyHandler;

/**
 * @author : ginstone
 * @version : v1.0.0
 * @since : 2023/9/2 10:20
 **/
public class MsgCallback extends CommonCallback<BaseMessageBody> {
    public MsgCallback(MyHandler handler) {
        super(handler);
    }

    /**
     * 执行成功回调
     *
     * @param body body字符串
     */
    @Override
    public void onSuccess(BaseMessageBody body) {
        handler.toast(body.getMessage());

    }
}
